package com.atwy.order.feign;

import com.atwy.common.RespBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("account")
public interface AccountFeign {

    @PostMapping(value = "/deductAccount")
    RespBean account(@RequestParam("userId") String userId, @RequestParam("money") int money);
}
